<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>入门案例</title>
    <script src="node_modules/vue/dist/vue.min.js"></script>
</head>
<body>
<div id="app">
    <input type="text" v-model="num"/>
    <button v-on:click="num++">点我</button>
    <h2>{{ name }}非常帅,拥有{{ num }}般武艺.</h2>
</div>
<script type="text/javascript">
    const app = new Vue({
        el: "#app",
        data: {
            name: "easonsy",
            num: 1
        }
    });
</script>
</body>
</html>